class LoginNewBean {
  Data data;
  String token;

  LoginNewBean({this.data, this.token});

  LoginNewBean.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    token = json['token'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['token'] = this.token;
    return data;
  }
}

class Data {
  String id;
  String name;
  String password;
  String idcard;
  String sex;
  String phone;
  String createTime;
  String updateTime;
  String delFlag;

  Data(
      {this.id,
        this.name,
        this.password,
        this.idcard,
        this.sex,
        this.phone,
        this.createTime,
        this.updateTime,
        this.delFlag});

  Data.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    name = json['name'];
    password = json['password'];
    idcard = json['idcard'];
    sex = json['sex'];
    phone = json['phone'];
    createTime = json['createTime'];
    updateTime = json['updateTime'];
    delFlag = json['delFlag'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['name'] = this.name;
    data['password'] = this.password;
    data['idcard'] = this.idcard;
    data['sex'] = this.sex;
    data['phone'] = this.phone;
    data['createTime'] = this.createTime;
    data['updateTime'] = this.updateTime;
    data['delFlag'] = this.delFlag;
    return data;
  }
}